package com.tangguangdi.base.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 业务异常定义
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper=false)
public class BusinessException extends RuntimeException {

    /**
     * 无参构造器
     */
    public BusinessException(){}

    /**
     * 错误编码
     */
    private Integer code = -1;
    /**
     * 错误描述
     */
    private String message = "系统异常";
}
